package it.ap.sa.acqua.dao.model;
// Generated 23-ago-2017 17.05.29 by Hibernate Tools 4.3.1.Final

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * TTank generated by hbm2java
 */
@DynamicUpdate
@Cache(region = "it.eng.db.TTank", usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name = "t_tank", schema = "public")
public class TTank implements java.io.Serializable {

	private Long id;

	private Double larghezza;

	private Double lunghezza;

	private Double altezza;

	private Double capacita;

	private String note;

	private Long idUser;

	private String nome;

	private Double phMax;

	private Double phMin;

	private Double ghMax;

	private Double ghMin;

	private Double khMax;

	private Double khMin;

	private Double temperatureMax;

	private Double temperatureMin;

	public TTank() {
	}

	public TTank(Double larghezza, Double lunghezza, Double altezza, Double capacita, String note, Long idUser,
			String nome, Double phMax, Double phMin, Double ghMax, Double ghMin, Double khMax, Double khMin,
			Double temperatureMax, Double temperatureMin) {
		this.larghezza = larghezza;
		this.lunghezza = lunghezza;
		this.altezza = altezza;
		this.capacita = capacita;
		this.note = note;
		this.idUser = idUser;
		this.nome = nome;
		this.phMax = phMax;
		this.phMin = phMin;
		this.ghMax = ghMax;
		this.ghMin = ghMin;
		this.khMax = khMax;
		this.khMin = khMin;
		this.temperatureMax = temperatureMax;
		this.temperatureMin = temperatureMin;
	}

	@GenericGenerator(name = "generator", strategy = "org.hibernate.id.SequenceGenerator", parameters = @Parameter(name = "sequence", value = "sequence_id"))
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "larghezza", precision = 17, scale = 17)
	public Double getLarghezza() {
		return this.larghezza;
	}

	public void setLarghezza(Double larghezza) {
		this.larghezza = larghezza;
	}

	@Column(name = "lunghezza", precision = 17, scale = 17)
	public Double getLunghezza() {
		return this.lunghezza;
	}

	public void setLunghezza(Double lunghezza) {
		this.lunghezza = lunghezza;
	}

	@Column(name = "altezza", precision = 17, scale = 17)
	public Double getAltezza() {
		return this.altezza;
	}

	public void setAltezza(Double altezza) {
		this.altezza = altezza;
	}

	@Column(name = "capacita", precision = 17, scale = 17)
	public Double getCapacita() {
		return this.capacita;
	}

	public void setCapacita(Double capacita) {
		this.capacita = capacita;
	}

	@Column(name = "note")
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "id_user")
	public Long getIdUser() {
		return this.idUser;
	}

	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}

	@Column(name = "nome")
	public String getNome() {
		return this.nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Column(name = "ph_max", precision = 17, scale = 17)
	public Double getPhMax() {
		return this.phMax;
	}

	public void setPhMax(Double phMax) {
		this.phMax = phMax;
	}

	@Column(name = "ph_min", precision = 17, scale = 17)
	public Double getPhMin() {
		return this.phMin;
	}

	public void setPhMin(Double phMin) {
		this.phMin = phMin;
	}

	@Column(name = "gh_max", precision = 17, scale = 17)
	public Double getGhMax() {
		return this.ghMax;
	}

	public void setGhMax(Double ghMax) {
		this.ghMax = ghMax;
	}

	@Column(name = "gh_min", precision = 17, scale = 17)
	public Double getGhMin() {
		return this.ghMin;
	}

	public void setGhMin(Double ghMin) {
		this.ghMin = ghMin;
	}

	@Column(name = "kh_max", precision = 17, scale = 17)
	public Double getKhMax() {
		return this.khMax;
	}

	public void setKhMax(Double khMax) {
		this.khMax = khMax;
	}

	@Column(name = "kh_min", precision = 17, scale = 17)
	public Double getKhMin() {
		return this.khMin;
	}

	public void setKhMin(Double khMin) {
		this.khMin = khMin;
	}

	@Column(name = "temperature_max", precision = 17, scale = 17)
	public Double getTemperatureMax() {
		return this.temperatureMax;
	}

	public void setTemperatureMax(Double temperatureMax) {
		this.temperatureMax = temperatureMax;
	}

	@Column(name = "temperature_min", precision = 17, scale = 17)
	public Double getTemperatureMin() {
		return this.temperatureMin;
	}

	public void setTemperatureMin(Double temperatureMin) {
		this.temperatureMin = temperatureMin;
	}

	/**
	 * toString
	 * @return String
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();

		buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
		buffer.append("id").append("='").append(getId()).append("' ");
		buffer.append("larghezza").append("='").append(getLarghezza()).append("' ");
		buffer.append("lunghezza").append("='").append(getLunghezza()).append("' ");
		buffer.append("altezza").append("='").append(getAltezza()).append("' ");
		buffer.append("capacita").append("='").append(getCapacita()).append("' ");
		buffer.append("note").append("='").append(getNote()).append("' ");
		buffer.append("idUser").append("='").append(getIdUser()).append("' ");
		buffer.append("nome").append("='").append(getNome()).append("' ");
		buffer.append("phMax").append("='").append(getPhMax()).append("' ");
		buffer.append("phMin").append("='").append(getPhMin()).append("' ");
		buffer.append("ghMax").append("='").append(getGhMax()).append("' ");
		buffer.append("ghMin").append("='").append(getGhMin()).append("' ");
		buffer.append("khMax").append("='").append(getKhMax()).append("' ");
		buffer.append("khMin").append("='").append(getKhMin()).append("' ");
		buffer.append("temperatureMax").append("='").append(getTemperatureMax()).append("' ");
		buffer.append("temperatureMin").append("='").append(getTemperatureMin()).append("' ");
		buffer.append("]");

		return buffer.toString();
	}

}
